package cn.myzqu.sign.user.server.client;

import cn.myzqu.sign.common.response.ResultData;
import cn.myzqu.sign.message.common.em.ExceptionEm;
import cn.myzqu.sign.message.common.input.MessageInput;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@Component
public class MessageClientServiceFallback  {


    public ResultData addMessage(@Valid @RequestBody MessageInput messageInput) {
        return ResultData.error(ExceptionEm.FEIGN_ERROR.getCode(),ExceptionEm.FEIGN_ERROR.getMsg());
    }


    public ResultData changeReadStatus(@NotNull(message = "id不能为空") @RequestParam Integer id) {
        return ResultData.error(ExceptionEm.FEIGN_ERROR.getCode(),ExceptionEm.FEIGN_ERROR.getMsg());
    }


    public ResultData getMessageByUserId(@RequestParam Integer userId, @RequestParam Integer current, @RequestParam Integer size) {
        return ResultData.error(ExceptionEm.FEIGN_ERROR.getCode(),ExceptionEm.FEIGN_ERROR.getMsg());
    }


}
